<?php
/** 
 * $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/plugins/function.pncCartviewLinkUrl.php,v $
 * $Author: landseer $
 * $Revision: 1.4 $
 * $Date: 2004/04/28 12:43:23 $
 *
 * Type: Function
 *
 * Returns the url to view the cart. Can be used as in <a href="<!--[ pncCartviewLinkUrl ]-->">Show The Cart</a>
 *@return string url
 */

function smarty_function_pncCartviewLinkUrl($params, &$smarty)
{
//    extract($params);

    if( pnModAPILoad('pncommerce','user') )
    {
        return pnModAPIFunc ('pncommerce', 'user','pncModURL',
	        				  array( 'Module'   => 'pncommerce',
		        				     'Section'  => 'user',
			        			     'Function' => 'cartview' ) );
    }
    else
    {
        $smarty->trigger_error( "pncCartviewLinkUrl: cannot load pnuserapi", E_USER_ERROR );
    }
}
?>
